package com.hx.miniblog.pojo.mj;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

/**
 * @author wenhao hu
 * @title: RoleType
 * @projectName miniBlog
 * @description: TODO
 * @date 2021/12/2811:44
 */
@Getter
public enum RoleType implements IEnum<Integer> {
    /**
     * 管理员
     */
    ADMIN(1,"ADMIN"),
    /**
     * 用户
     */
    USER(2,"USER");

    private final int value;
    private final String desc;

    RoleType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
